package com.naiterui.ehp.bs.agent.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.agent.entity.AgArea;

/**
 * @author yiren
 * @since 2022/2/15
 */
@Repository
public interface IAgAreaRepository extends BaseJpaRepository<AgArea, Long> {
	List<AgArea> findByParentId(Long parentId);

    List<AgArea> findAllByAreaLev(Integer areaLev);
}
